from celery import task
from django.core.mail import send_mail

from taotao import settings


@task
def add(a, b):
    return a + b



@task
def send_email(email):
    title = "有你感兴趣的宝贝..."
    msg = "*******************"
    from_email = settings.DEFAULT_FROM_EMAIL
    recievers = [email,]
    send_mail(title,msg,from_email,recievers,fail_silently=True)
